package edu.its.dreamteam.daf.beans;

import java.io.Serializable;

import org.apache.commons.lang.builder.EqualsBuilder;

public class Club extends BaseBean implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String idClub;
	private String clubName;
	
	public String getIdClub() {
		return idClub;
	}

	public void setIdClub(String idClub) {
		this.idClub = idClub;
	}

	public String getClubName() {
		return clubName;
	}

	public void setClubName(String clubName) {
		this.clubName = clubName;
	}

	@Override
	protected String getPrimaryKey() {
		return getIdClub();
	}
	
	public boolean equals(Object object) {
		if (!(object instanceof Club)) {
			return false;
		}
		Club obj = (Club) object;
		return new EqualsBuilder()
				.append(this.idClub, obj.idClub)
				.append(this.clubName, obj.clubName)
				.isEquals();
	}
}
